package com.smartcruise.util.network.callBack;

import com.alibaba.sdk.android.oss.ClientException;
import com.alibaba.sdk.android.oss.ServiceException;
import com.alibaba.sdk.android.oss.model.PutObjectRequest;
import com.alibaba.sdk.android.oss.model.PutObjectResult;

/**
 * Created by FengChaoQun
 * on 2018/2/8 0008
 * 上传文件的回调
 */

public interface UploadFileCallBack {

    void onStart();

    void onProgress(PutObjectRequest request, long currentSize, long totalSize);

    void onSuccess(PutObjectRequest request, PutObjectResult result);

    void onFailure(PutObjectRequest request, ClientException clientException, ServiceException serviceException);

}
